package com.yunc.modules.chat.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

/**
 * 群消息内容表
 *
 * @author concong tao
 * @since 2019-03-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("chat_groups_msg")
public class ChatGroupsMsg implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 消息内容
     */
    private String content;

    /**
     * 群ID
     */
    private Long groupId;

    /**
     * 发送者
     */
    private Long fromId;

    /**
     * 发送者昵称
     */
    private String fromName;

    /**
     * 创建时间
     */
    private Date createTime;
}
